import request from '@/utils/request'
import type { Teacher, TeacherVo } from './type'

const baseUrl = '/teacher'

export const reqTeacherAllData = () =>
  request.get<any, TableResponse<Teacher[]>>(`${baseUrl}/allData`)

export const reqTeacherInfo = (teacherId: string) =>
  request.get<any, ResponseData<TeacherVo>>(`${baseUrl}/${teacherId}`)
